/* 合同类型 */
export const CONTRACT_TYPES = [
  {
    label: '商家平台入驻协议',
    value: 0
  },
  {
    label: '平台模式协议',
    value: 1
  }
];

/* 合同状态 */
export const CONTRACT_STATUS = [
  {
    label: '等待审批',
    value: 0,
    color: '#1890FF'
  },
  {
    label: '审批退回',
    value: 1,
    color: '#F52222'
  },
  {
    label: '待归档',
    value: 2,
    color: '#F5A623'
  },
  {
    label: '已归档',
    value: 3,
    color: '#87d068'
  }
];

/* 审批状态 */
export const APPROVAL_STATUS = [
  {
    label: '审批成功',
    value: 2
  },
  {
    label: '审批失败',
    value: 1
  }
];
/* 签约类型 */
export const SIGN_TYPES = [
  {
    label: '线下签约',
    value: 0
  },
  {
    label: '线上签约',
    value: 1
  }
];

/* 签约状态 */
export const CONTRACT_SIGN_STATUS = [
  {
    label: '已发合同待签约',
    value: 0
  },
  {
    label: '签约失败',
    value: 1
  },
  {
    label: '签约成功',
    value: 2
  }
];

export const FILTER_DISABLED = [
  {
    key: 'approval',
    h: status => status === 2 || status === 3
  },
  {
    key: 'edit',
    h: status => status === 2 || status === 3
  },
  {
    key: 'archive',
    h: status => status === 0 || status === 1 || status === 3
  }
];
